import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import TestPaperView from '../views/TestPaperView.vue'
import TestPaperEditor from '../views/TestPaperEditor.vue'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            name: 'home',
            component: HomeView,
        },
        {
            path: '/testPaper/:paperName',
            name: 'testPaper',
            component: TestPaperView,
        },
        {
            path: '/testPaperEditor/:paperName',
            name: 'testPaperEditor',
            component: TestPaperEditor,
        },

    ],
})

export default router
